//
//  SCNLoginTextField.swift
//  ShoucainuSwift
//
//  Created by 王家旭 on 2017/5/18.
//  Copyright © 2017年 Riluee. All rights reserved.
//

import UIKit

class SCNLoginTextField: UITextField {

 

    override init(frame: CGRect) {
        super.init(frame: frame)
        
    }

    func configuration(title: String,placeholder: String?) {
        
        self.font = UIFont.systemFont(ofSize: 15.0)
        self.borderStyle = .roundedRect
        self.placeholder = placeholder
        let leftV = UILabel(frame: CGRect(x: 0,y: 0, width: 65,height: 40))
        leftV.text = title
        leftV.font = UIFont.systemFont(ofSize: 15.0)
        leftV.textAlignment = .center
        self.leftView = leftV
        self.leftViewMode = .always

    }
    
    required init?(coder aDecoder: NSCoder) {
        fatalError("init(coder:) has not been implemented")
    }

}
